package
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	import putao.debug.Debug;
	import putao.server.Server;
	import putao.views.Login;
	
	
	[SWF(width="1000", height="600")]
	public class Main extends Sprite
	{
		private var server:Server = new Server();
		
		private var login:Login = new Login();
		
		public function Main()
		{
			this.addChild(Debug.getInstance());
			
			this.addChild(login);
			login.btnLogin.addEventListener(MouseEvent.CLICK, onLogin);
		}
		
		private function onLogin(e:MouseEvent):void
		{
			server.connect();
		}
	}
}